package com.bifang.core.dao.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户基础信息表
 *
 * @author chenzh
 * @since 2020-12-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYS_USER_BASIC")
@ApiModel(value = "SysUserBasic对象", description = "用户基础信息表")
public class DictSysUserBasic extends Model<DictSysUserBasic> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "USER_ID", type = IdType.INPUT)
    private String userId;

    @ApiModelProperty(value = "昵称")
    @TableField("NIKE_NAME")
    private String nikeName;

    @ApiModelProperty(value = "性别")
    @TableField("SEX")
    private String sex;

    @ApiModelProperty(value = "出生日期")
    @TableField("BIRTHDAY")
    private Date birthday;

    @ApiModelProperty(value = "地址")
    @TableField("ADDRESS")
    private String address;

    @ApiModelProperty(value = "地址详细信息")
    @TableField("ADDRESS_DETAIL")
    private String addressDetail;

    @ApiModelProperty(value = "头像路径")
    @TableField("PHOTO_PATH")
    private String photoPath;

    @ApiModelProperty(value = "办公室电话")
    @TableField("OFFICE_PHONE")
    private String officePhone;

    @ApiModelProperty(value = "短号")
    @TableField("SHORT_PHONE")
    private String shortPhone;

    @ApiModelProperty(value = "姓名拼音全拼")
    @TableField("SPELL_ALL")
    private String spellAll;

    @ApiModelProperty(value = "姓名首字母全拼")
    @TableField("SPELL_FIRST")
    private String spellFirst;

    @ApiModelProperty(value = "注册日期")
    @TableField("REGDATE")
    private Date regdate;

    @ApiModelProperty(value = "逻辑删除标志 0 正常 1 删除")
    @TableField(value = "DEL", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @ApiModelProperty(value = "注册类型：登录自动注册，批量注册等")
    @TableField("REG_TYPE")
    private String regType;

    @ApiModelProperty(value = "头像文件服务id")
    @TableField("AVATAR_SHOW_ID")
    private String avatarShowId;

    @ApiModelProperty(value = "上级领导用户id")
    @TableField("SUP_ID")
    private String supId;

    @ApiModelProperty(value = "上级领导姓名")
    @TableField("SUP_NAME")
    private String supName;

    @Override
    public Serializable pkVal() {
        return this.userId;
    }
}
